import axios from 'axios';

// let base = "/mapservice";

export const requestSearch = params => {
    let url = 'http://10.2.40.51:9500/dbfg/mapservice/page?pageNo=' + params.pageNo + "&pageSize=" + params.pageSize;
    // let url = base.concat("/page?pageNo=") + params.pageNo + "&pageSize=" + params.pageSize;
    return axios.post(url, params);
};

export const requestUpdate = params => {
    let url = 'http://10.2.40.51:9500/dbfg/mapservice';
    // let url = base;
    return axios.put(url, params);
};